The optstp_f77 method determines whether the algorithm should
terminate due to any of the following:
1) problem solved within user tolerance
2) convergence within user tolerance
3) iteration limit reached
4) divergence or too restrictive maximum step (stepmx)
suspected
Translated by Steve Verrill, May 12, 1998.